package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 章节对象 chapter
 * 
 * @author ruoyi
 * @date 2024-09-20
 */
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /**  外键(课程表) */
    @Excel(name = " 外键(课程表)")
    private Long coid;

    /** 外键(教师表)  */
    @Excel(name = "外键(教师表) ")
    private Long teid;

    /** 外键(类别表) */
    @Excel(name = "外键(类别表)")
    private Long caid;

    /** int 外键(科目表) */
    @Excel(name = "int 外键(科目表)")
    private Long suid;

    /** 讲义 */
    @Excel(name = "讲义")
    private String pdfurl;

    /** 视频  */
    @Excel(name = "视频 ")
    private String videourl;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCoid(Long coid) 
    {
        this.coid = coid;
    }

    public Long getCoid() 
    {
        return coid;
    }
    public void setTeid(Long teid) 
    {
        this.teid = teid;
    }

    public Long getTeid() 
    {
        return teid;
    }
    public void setCaid(Long caid) 
    {
        this.caid = caid;
    }

    public Long getCaid() 
    {
        return caid;
    }
    public void setSuid(Long suid) 
    {
        this.suid = suid;
    }

    public Long getSuid() 
    {
        return suid;
    }
    public void setPdfurl(String pdfurl) 
    {
        this.pdfurl = pdfurl;
    }

    public String getPdfurl() 
    {
        return pdfurl;
    }
    public void setVideourl(String videourl) 
    {
        this.videourl = videourl;
    }

    public String getVideourl() 
    {
        return videourl;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("coid", getCoid())
            .append("teid", getTeid())
            .append("caid", getCaid())
            .append("suid", getSuid())
            .append("pdfurl", getPdfurl())
            .append("videourl", getVideourl())
            .append("price", getPrice())
            .toString();
    }
}
